﻿//------------------------------------------------------------------------------
// <copyright file="HomeController.cs" company="CommerceServer.net, Inc">
//    (c) 2012 CommerceServer.net, Inc. and its affiliates. All rights reserved.
// </copyright>
// <summary></summary>
//------------------------------------------------------------------------------ 
namespace MVCSample.Controllers
{
    using CommerceServer.Foundation;
    using System.Web.Mvc;

    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

           // var response = MVCSample.RequestTemplates.Catalog.GetProductSummary("AW074-04", "Adventure Works Catalog");

            //var simpleCatalogQuery = new CommerceQuery<CommerceEntity>("Catalog");
            //simpleCatalogQuery.SearchCriteria.Model.Id = "Adventure Works Catalog";

            //var response = CommerceFoundationServiceAgent.Execute(simpleCatalogQuery);

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
